<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/component.jsp"%>
<html>
<head>
    <title>新增资源信息</title>
<head>

<script type="text/javascript">

$(document).ready(function() {
	// 开始时间
	configDate('startDate', '<fmt:formatDate value="<%=new Date() %>" pattern="yyyy-MM-dd" type="date"/>', 'yy-mm-dd');
	// 结束时间
	configDate('endDate', '<fmt:formatDate value="<%=new Date() %>" pattern="yyyy-MM-dd" type="date"/>', 'yy-mm-dd');
    // 校验主表单
    $("#planResourceForm").validationEngine();
});

// 返回账户列表
function back2list(){
	if(confirm("数据没有保存!确认将丢失当前表单数据!")){
		window.location.href = "planResourceAction.do?method=list"
	}else{
		return ;
	}
}

</script>
	
</head>
  
  <body>
   
   <html:form styleId="planResourceForm" method="post" action="planResourceAction.do">
    <input type="hidden" name="method" value="insert"/>
    <input type="hidden" id="action_planResourceId" name="planResourceId"/>
    <br/><br/>
    <table width="80%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
		<tr align="center" bgcolor="#FAFAF1" height="22">
			<td colspan="2"><b>新增资源</b></td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td width="10%">资源名称</td>
			<td width="30%">
				<input id="planResourceName" name="planResourceName" style='width:40%;' readonly/>
			</td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td width="10%">资源类型</td>
			<td width="30%">
				<select name="resourceType" style="width:40%;">
					<option value="<%=Constants.PLAN_RESOURCE_SKILL%>">技能(SKILL)</option>
					<option value="<%=Constants.PLAN_RESOURCE_FUND%>">资金(FUND)</option>
					<option value="<%=Constants.PLAN_RESOURCE_CONTACT%>">人脉(CONTACT)</option>
				</select>
			</td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td width="10%">属性类型</td>
			<td width="30%">
				<select name="property" style="width:40%;">
					<option value="<%=Constants.PLAN_RESOURCE_PROPERTY_ONETIME%>">一次性(ONETIME)</option>
					<option value="<%=Constants.PLAN_RESOURCE_PROPERTY_FOREVER%>">永久性(FOREVER)</option>
				</select>
			</td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td>开始日期</td>
			<td>
				<input id="startDate" name="startDate" style='width:40%;' readonly/>
			</td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td>结束日期</td>
			<td>
				<input id="endDate" name="endDate" style='width:40%;' readonly/>
			</td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td>优先级</td>
			<td>
				<select name="priority" id="priority" style="width:40%;">
					<option value="<%=Constants.PLAN_PRIORITY_LOW %>">低</option>
					<option value="<%=Constants.PLAN_PRIORITY_MIDDLE %>">中</option>
					<option value="<%=Constants.PLAN_PRIORITY_HIGH %>">高</option>
				</select>
			</td>
		</tr>
		<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
			<td>备注</td>
			<td>
				<input name="note" style='width:40%;'/>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<button onclick="insertAction();">添加</button>
			</td>
		</tr>
    </table>
   </html:form> 
    
  </body>
</html>
